package com.study.SpringBootLesson4.jsp;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 赵超
 * @Description Jsp的前端控制器
 * @create 2017-11-29 16:41
 **/
@Controller
public class JspController {

    @RequestMapping("/index")
    public String index(Model model) {
        model.addAttribute("message", "消息内容！");
        return "index";
    }
}
